package com.jhhc.RHDB.Data.ServiceImpl;

import java.util.List;

import com.jhhc.StormSurgeForecast.AstronomicalTide.Pojo.BDMS_ST_ASTROTD_F;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jhhc.RHDB.Data.Dao.ST_TIDE_RMapper;
import com.jhhc.RHDB.Data.Pojo.ST_TIDE_R;
import com.jhhc.RHDB.Data.Service.ST_TIDE_RService;

import javax.annotation.Resource;

@Service
public class ST_TIDE_RServiceImpl implements ST_TIDE_RService {

    @Resource
    private ST_TIDE_RMapper ST_TIDE_RMapper;

    @Value("${datasourceType}")
    String datasourceType;

    @Override
    public List<ST_TIDE_R> selectByStationArrys(List<String> stcd, String startTime, String endTime) {
        // TODO Auto-generated method stub
        return ST_TIDE_RMapper.selectByStationArrys(stcd, startTime, endTime);
    }

    @Override
    public ST_TIDE_R selectTIDENewEstData(String stcd ,String datasourceType) {
        return ST_TIDE_RMapper.selectTIDENewEstData(stcd ,datasourceType);
    }

    @Override
    public List<ST_TIDE_R> selectByStcd(List<String> stcds, String startTime, String endTime) {
        return ST_TIDE_RMapper.selectByStcd(stcds, startTime, endTime,datasourceType);
    }

    @Override
    public List<ST_TIDE_R> selectByOneStcd(List<String> stcds, String startTime, String endTime) {
        return ST_TIDE_RMapper.selectByOneStcd(stcds,startTime,endTime);
    }

    @Override
    public List<ST_TIDE_R> selectMAXDatas(List<String> stcd) {
        return ST_TIDE_RMapper.selectMAXDatas(stcd);
    }

    @Override
    public List<ST_TIDE_R> selectNewEstData(List<String> stcds) {
        return ST_TIDE_RMapper.selectNewEstData(stcds);
    }

    @Override
    public ST_TIDE_R selectMAXData(String stcd) {
        return ST_TIDE_RMapper.selectMAXData(stcd) ;
    }

    @Override
    public List<ST_TIDE_R> tide_output(String startTime, String endTime,List<String> stcd) {
        return ST_TIDE_RMapper.tide_output(startTime, endTime,stcd);
    }

}
